package edu.uwlax.cs.oayonlinestore.client.gui.myaccount;

import edu.uwlax.cs.oayonlinestore.client.User;
import edu.uwlax.cs.oayonlinestore.client.gui.shared.AccountForm;
import edu.uwlax.cs.oayonlinestore.client.utils.TitlePage;

public class PageUserEditAccount extends TitlePage {

	private AccountForm form;

	protected void create() {
		setTitle("Edit Account");
		add(form = new AccountForm(false, false));
	}

	public String getID() {
		return "EditAccount";
	}

	protected void onShow() {
		form.loadUser(User.get().getId());
	}

}
